Skip to content

Figure.image: Add parameter fgcolor/bgcolor/transparent_color and deprecate bitcolor [Will be removed in 0.24.0] - #4872

Open
seisman wants to merge 3 commits into
mainfrom
image/bitcolor
Open

Figure.image: Add parameter fgcolor/bgcolor/transparent_color and deprecate bitcolor [Will be removed in 0.24.0]#4872
seisman wants to merge 3 commits into
mainfrom
image/bitcolor

Conversation

@seisman

@seisman seisman commented Aug 30, 2026

Copy link
Copy Markdown
Member

Implement the -G option, as three separate parameters fgcolor/bgcolor/transparent_color, as proposed in #4263 (comment).

Supersedes #4280
Related to #4263.

@seisman seisman added this to the 0.20.0 milestone Aug 30, 2026
@seisman seisman added enhancement Improving an existing feature deprecation Deprecating a feature needs review This PR has higher priority and needs review. labels Aug 30, 2026
Comment thread pygmt/src/image.py
images you can specify an alternate *color* for the background (**+b**) or the
foreground (**+f**) pixels, or give no color to make those pixels transparent.
Alternatively, for color images you can select a single *color* that should be
made transparent instead (**+t**). Pass a list of to specify multiple settings.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
made transparent instead (**+t**). Pass a list of to specify multiple settings.
made transparent instead (**+t**). Pass a list to specify multiple settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecation Deprecating a feature enhancement Improving an existing feature needs review This PR has higher priority and needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants